import os
from django.conf import settings
import random
import hashlib

def sha1sum(data):
    return hashlib.sha1(data.encode()).hexdigest()
def make_abspath(path):
    return os.path.join(settings.MEDIA_ROOT, path)